export interface SPUImg{
    id: number | string 
    imgName: string
    imgPath: string
    createTime?: string
    updateTime?: string
}

export interface SpuHasImg{
  data: SPUImg[]
}

export type SPUImgList = SPUImg[]

export interface SaleAttrValue {
  id?: number
  createTime?: null
  updateTime?: null
  spuId?: number
  saleId: number | string
  saleAttrValue: string
  saleAttrName?: string
  isChecked?: null
}

export type SpuSaleAttrValueList2 = SaleAttrValue

export type SpuSaleAttrValueList = SaleAttrValue[]

export interface SaleAttr{
  id?: number
  createTime?: null
  updateTime?: null
  spuId?: number
  baseSaleAttrId: number | string
  saleAttrName: string
  saleAttrValueList: SpuSaleAttrValueList
  flag?: boolean,
  saleAttrValue: number | string
}

export interface SaleAttrResponseData{
  data: SaleAttr[]
}

export interface SPUData{
  category3Id: string | number,
  spuName: string,
  description: string,
  tmId: string | number,
  spuImgList?: null | SPUImg[],
  spuSaleAttrList?: null | SaleAttr[],
  saleAttrValue: number | string
}

export type Records = SPUData[]

export interface HasResponseData{
    code: number,
    message: string
    ok: boolean
    data: {
      records: Records[],
      size: number,
      current: number, 
      total: number,
      pages: number
    }
}